#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char ch[101];
    int i,kk;
    gets(ch);
    printf("%d\n",strlen(ch));
    for(i=0;i<strlen(ch);i++)
    {
        kk=ch[i];
        if(kk>='A'&&kk<='Z')
            ch[i]='Z'-ch[i]+'A';
        else if(kk>='a'&&kk<='z')
            ch[i]='z'-ch[i]+'a';
        printf("%c",ch[i]);
    }
    return 0;
}


